/*
 * This class contains the entity event log
 * 
 */
package co.edu.unal.satacredito.database.entity;

import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Reference;
import java.util.Date;
import org.bson.types.ObjectId;

/**
 *
 * @author Daniel Felipe
 * @version 1.0
 *
 */
public class EventLog {

    @Id
    private ObjectId id;
    @Reference
    private Machine machine;
    private int work;
    private int stateWork;
    private Date startDate;
    private Date endDate;
    private String fileCheck;

    public EventLog() {
    }
    
    public EventLog(String id) {
        this.id = new ObjectId(id);
    }

    public EventLog(Machine machine, int p_Work, Date p_startDate, String p_FileCheck) {
        this.machine = machine;
        this.work = p_Work;
        this.stateWork = 0;
        this.startDate = p_startDate;
        this.fileCheck = p_FileCheck;
    }

    public EventLog(Machine machine, int p_Work, Date p_startDate, Date p_endDate, String p_FileCheck) {
        this.machine = machine;
        this.work = p_Work;
        this.stateWork = 0;
        this.startDate = p_startDate;
        this.endDate = p_endDate;
        this.fileCheck = p_FileCheck;
    }

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public Machine getMachine() {
        return machine;
    }

    public void setMachine(Machine machine) {
        this.machine = machine;
    }

    public int getWork() {
        return work;
    }

    public void setWork(int work) {
        this.work = work;
    }

    public int getStateWork() {
        return stateWork;
    }

    public void setStateWork(int stateWork) {
        this.stateWork = stateWork;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getFileCheck() {
        return fileCheck;
    }

    public void setFileCheck(String fileCheck) {
        this.fileCheck = fileCheck;
    }
}
